<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>


	<?php 
		//print_r ($this->input->post());
		
		echo form_fieldset('Registrasi ITB Junior Programming Contest 2011',array('class' => 'form'));
		
		echo form_open('register_jpc/validasi');
		//$req= "<span id='req'> * </span>";
	
		echo form_label('Nama lengkap anda','jpc_nama');
		echo form_error('jpc_nama');
		echo form_input('jpc_nama', $this->input->post("jpc_nama"));
	
		echo form_label('Nomor ponsel anda','jpc_nohp');
		echo form_error('jpc_nohp');
		echo form_input('jpc_nohp', $this->input->post("jpc_nohp"));
		
		echo form_label('Alamat email anda','jpc_email');
		echo form_error('jpc_email');
		echo form_input('jpc_email', $this->input->post("jpc_email"));

		echo form_label('Kelas <span id="reg_rule">terhitung dari 1 Oktober 2011<br/>Masukkan Kelas dan jurusan misal : XII IPA, IX, dan lain-lain.</span>','jpc_kelas');
		echo form_error('jpc_kelas');
		echo form_input('jpc_kelas', $this->input->post("jpc_kelas"));

		
		echo form_label('Nama sekolah','jpc_nama_sek');
		echo form_error('jpc_nama_sek');
		echo form_input('jpc_nama_sek', $this->input->post("jpc_nama_sek"));
		
		echo form_label('Alamat sekolah','jpc_alamat_sek');
		echo form_error('jpc_alamat_sek');
		echo form_textarea('jpc_alamat_sek',$this->input->post("jpc_alamat_sek"));
		
		echo form_label('Nama lengkap pembimbing','jpc_pembimbing');
		echo form_error('jpc_pembimbing');
		echo form_input('jpc_pembimbing', $this->input->post("jpc_pembimbing"));
		
		//captcha
		echo form_label('Kode verifikasi','kode_verifikasi');		
		echo '<div class="center">';
		echo $image;
		echo '</div><div class="center">Masukan kode verifikasi diatas.</div>';
		echo form_error('kode_verifikasi');
		echo form_input('kode_verifikasi', '');
		
		//DISESUAIKAN
		$link_peraturan = '../../itbjpc_peraturan.php';
		
		$agreement='<p class="content">Sebagai prasyarat pendaftaran ITB Junior Programming Contest 2011, saya telah membaca dan menyetujui ';
		$agreement.=anchor_popup($link_peraturan,'peraturan dan regulasi ITB Junior Programming Contest 2011', 
					array ('title' => 'Peraturan dan Regulasi ITB Junior Programming Contest 2011', 'alt' => 'Peraturan dan Regulasi ITB Junior Programming Contest 2011'));
		$agreement.='. Sanksi diskualifikasi akan saya terima, jika saya melanggar peraturan dan regulasi ITB Junior Programming Contest 2011. Keputusan ini sepenuhnya saya buat secara sadar dan tanpa paksaan.<p>';
		echo form_label('Peraturan dan Regulasi','agreement');	
		echo $agreement;		
		echo form_error('jpc_agreement');
		echo '<div class="center">';
		echo form_checkbox(array(
				'name'        => 'jpc_agreement',
				'id'          => 'jpc_agreement',
				'value'       => TRUE,
				'checked'     => FALSE,
				));
		echo ' Saya setuju.';
		echo '</div>';
		
		echo form_submit(array(
				'name' => 'daftar',
				'class' => 'submit')
						, 'Daftar');
		
		echo form_close();
		
		echo form_fieldset_close(); 
	
	?>